export const ColumnProps = [
    {
        title: '业务名',
        dataIndex: 'businessName',
        width: 200,
        ellipsis: true
    },
    {
        title: '执行方法',
        dataIndex: 'method',
        width: 100,
        ellipsis: true
    },
    {
        title: '方法名',
        dataIndex: 'methodName',
        width: 100,
        ellipsis: true
    },
    {
        title: '日志类型',
        dataIndex: 'type',
        width: 150,
        ellipsis: true
    },
    {
        title: '创建人',
        dataIndex: 'creator',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        width: 300,
        ellipsis: true
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        width: 200,
        ellipsis: true
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: 300,
        ellipsis: true
    },
]


export const RuleProps = {
    name: [{ required: true, message: '组织/部门/职务名不能为空' }],
    type: [{ required: true, message: '类型不能为空' }],
}


export const FormProps = {
    id: '',
    parentId: '',
    name: '',
    type: '',
}


export const FilterItems = [
    {
        type: 'input',
        label: '业务名',
        key: 'businessName',
        placeholder:'请输入业务名'
    },
    {
        type: 'select',
        label: '日志类型',
        key: 'type',
        placeholder:'请选择日志类型'
    },
    {
        type: 'rangePicker',
        label: '日期',
        key: 'date',
        placeholder: ['开始时间', '结束时间']
    },
]


export const FormItems = [
    {
        type: 'treeSelect',
        label: '父级节点',
        key: 'parentId',
        isShow: true,
        data: [ ],
        placeholder:'请选择父级节点'
    },
    {
        type: 'select',
        label: '类型',
        key: 'type',
        isShow: true,
        data: [ ],
        placeholder:'请选择类型'
    },
    {
        type: 'input',
        label: '组织名',
        isShow: true,
        key: 'name',
        placeholder:'请输入组织名',
        maxLength: 50
    },
]


export const FilterModelProps = {
    total: 0,
    current: 1,
    pageSize: 10,
    name: '',
    type: '',
    date: [],
    beginDate: '',
    endDate: ''
}
